import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import RouterView from '../router2'

export default class Homes extends Component {
    render() {
        const { child } = this.props
        return (
            <div>
                <Link to="/home/one">首页</Link>
                <Link to="/home/two">我的</Link>
                <Link to="/home/three">第三个</Link>
                <RouterView routerList={child} />


                {/* 二级路由 */}
                {/* <RouterView routerList = { child }/> */}
            </div>
        )
    }
}
